package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.domain.AnnouncementDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 宣传信息管理 Mapper 接口
 * </p>
 * @author 34448
 */
@Mapper
public interface AnnouncementMapper extends BaseMapper<AnnouncementDO> {

    @Select("SELECT COUNT(announcement_id) AS count FROM announcements")
    Integer countAnnouncementPublications();
}